
body{
    background: #1d2b3a;
}
.box2d{
    display: flex;
    /* width: 100vw; */
    flex-wrap: wrap;
    /* transform-style: preserve-3d; */
    background: transparent;
    /* padding: 10px; */
    overflow: hidden;
    /* max-width: 100vw; */
    /* padding: 10px; */
}
.box2d div{
    overflow: hidden;
    width:  calc(100vw/4);
    box-sizing: border-box;
    height:  calc(100vw/4);
    display: flex;
    justify-content: center;
    align-items: center;
    border: 5px solid #00dfc4;
}
.box2d div div{
    /* display: flex; */
    width: calc(100vw/8);
    height: calc(100vw/8);
    background: #00dfc4;
    /* transform: rotateX(360deg); */
    transition: 1s;
    /* margin: calc(100vw/30); */
    /* box-sizing: border-box; */
    text-align: center;
    line-height: calc(100vw/5);
    overflow: hidden;

}
/* .box2d div:nth-of-type(2n-1){
    margin-left: calc(100vw/4 - 7.5px);
    margin-right: calc(100vw/4 - 7.5px) ;
} */
.box2d div:nth-child(1) div{
    animation: rotate 10s infinite reverse linear;
}
.box2d div:nth-child(2) div{
    animation: scale 10s infinite reverse linear;

}
.box2d div:nth-of-type(3) div{
    animation: skew 10s infinite reverse linear;

}
.box2d div:nth-of-type(4) div{
    animation: translate 10s infinite reverse linear;

}
@keyframes rotate {
    0%{
        transform: rotate(360deg);
    }
    100%{
        transform: rotate(0);

    }
}
@keyframes scale {
    0%{
        transform: scale(360deg);
    }
    50%{
        transform: scale(0);
    }
}
@keyframes skew {
    0%{
        transform: skew(360deg);
    }
    100%{
        transform: skew(0);

    }
}

@keyframes translate {
    0%{
        transform: translate(0,0);
    }
    50%{
        transform: translate(110px,110px);
    }
}